include( 'shared.lua' )
// Clientside only stuff goes here
function user_menu()
 
local frame = vgui.Create( "DFrame" )
frame:SetPos( 500, 500 )
frame:SetSize( 500, 500 )
frame:SetTitle( "User Menu" )
frame:SetVisible( true )
frame:SetDraggable( true )
frame:ShowCloseButton( true )
frame:SetMouseInputEnabled(true)
frame:SetKeyboardInputEnabled(true)
frame:MakePopup()

ok = vgui.Create( "DButton", frame )
ok:SetPos( 50, 150 )
ok:SetSize( 100, 50 )
ok:SetText( "Ok" )
ok.DoClick = function()
    RunConsoleCommand( "ok" )
    frame:Close()
end
 
cancel = vgui.Create( "DButton", frame )
cancel:SetPos( 50, 300 )
cancel:SetSize( 100, 50 )
cancel:SetText( "Cancel" )
cancel.DoClick = function()
     frame:Close()
end

apply = vgui.Create( "DButton", frame )
apply:SetPos( 50, 450  )
apply:SetSize(100, 50 )
apply:SetText( "Apply" )
apply.DoClick = function()
end

local fn_text = vgui.Create( "DTextEntry", frame )
fn_text:SetPos( 430, 50 )
fn_text:SetTall( 20 )
fn_text:SetWide( 100)

local ln_text = vgui.Create( "DTextEntry", frame )
ln_text:SetPos( 370, 50)
ln_text:SetTall( 20 )
ln_text:SetWide( 100)

end
concommand.Add( "user_menu", user_menu )

